package com.ruoyi.statistics.utils;

public enum StatisticsTypeEnum {

    Equipment("1"),
    Project("2"),
    Person("3"),
    Laboratory("4");

    public String value;

    StatisticsTypeEnum(String value) {
        this.value = value;
    }

    public static StatisticsTypeEnum getByValue(String value) {
        StatisticsTypeEnum[] values = StatisticsTypeEnum.values();
        for (StatisticsTypeEnum statisticsTypeEnum : values) {
            if (statisticsTypeEnum.value.equals(value)) {
                return  statisticsTypeEnum;
            }
        }
        return null;
    }
}
